//
// Created by 刘星 on 2021/11/16.
//

#ifndef UNTITLED_STUDENT_H
#define UNTITLED_STUDENT_H

#include <iostream>
#include <string>

using namespace std;

struct Student {
    string name;
    int score;

    bool operator <(const Student &otherStudent) {
        return score < otherStudent.score;
    }

    friend ostream& operator<<(ostream &os, const Student &student) {
        os<<"Student: "<<student.name<< " "<<student.score<<endl;
        return os;
    }
};


#endif //UNTITLED_STUDENT_H
